<%@page import="com.gray.pojo.User"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'main.jsp' starting page</title>
	
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-3.2.1.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/main.js"></script>
	
	<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
	<script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
	<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
	
  </head>
  
  <body>
     <c:if test="${sessionScope.user==null}"> <div style="float :left"><span><a href="<%=basePath%>login.jsp" class="pull-right">未登录</a></span></div></c:if>
    <c:if test="${sessionScope.user!=null }"><div style="float :left"><span><a href="<%=basePath%>user/backStag" class="pull-right">${sessionScope.user.userName }</a></span></div></c:if>
   
   <!--  导航区 -->
    <div class="center-block" style="width:500px;background-color:#ccc;">
    	<ul class=" nav navbar-nav ">
    		<li><a href="user/goMain">首页</a></li>
    		<li><a href="article/wonderfularticle">精彩文章</a></li>
    		<li><a href="user/goMain">常用工具</a></li>
    		<li><a href="user/goMain">关于个人</a></li>
    		<li><a onclick="stay_Message()">留言</a></li>
    	</ul>
    </div>
    		
    		<!-- 搜索框 -->
    	  <div class="searchbar row">
		    <div class="search-input col-80">
		      <label class="icon icon-search" for="search"></label>
		      <input type="search" id='search' placeholder='输入关键字...'/>
		    </div>
		    <a class="button button-fill button-primary col-20" onclick="getSearchArticle()">搜索</a>
 		 </div>
    
 
    <!-- 导航区结束 -->
    
    <!-- 首页要显示的文章   开始 -->
    
    <div class="mainBox22" >
    	
    </div>
    
    <!-- 首页要显示的文章  结束 -->
    
    <!-- 留言板 -->
    <center>
    <div class="messageboard " style="display: none;width:600px;" >
    	<table class="table table-condensed table-hover" >
    		<tbody id="list">
    			<!-- 动态生成留言区 -->
    		</tbody>
    	</table>
    	
    	<!-- 发表留言 -->
    	<center>
	    	<form action="">
	    		<div>
			    	<textarea rows="2" cols="2" class="form-control" id="stayMessageArea" style="width:200px;" ></textarea>
			    	<input type="button" value="留言" class="btn" onclick="reportStayMessage1()">
		    	</div>
		    	
	    	</form>
    	</center>
    </div>
    </center>
    <!-- 留言板结束 -->

   
    
  </body>
</html>
